package com.example.gulimall.seckill.feign;

import com.example.common.entity.coupon.SeckillSessionEntity;
import com.example.common.utils.R;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {


    @GetMapping("/coupon/seckillsession/uploadSecKillSkuLatest/{day}")
    List<SeckillSessionEntity> uploadSecKillSkuLatest(@PathVariable("day") int day);
}
